﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace ThesisSystem.Models
{
    public class Department
    {
        [Key]
        public int DepartmentID { get; set; }

        [Required(ErrorMessage="*")]
        [StringLength(50)]
        [Display(Name = "系部")]
        public string DepartmentName { get; set; }

        public virtual ICollection<GClass> GClasses { get; set; }

        public virtual ICollection<Profession> Professions { get; set; }
    }
}